<%= stylesheet_link_tag "basic_info" %>

<div id="notice" class="notice"><%= notice %></div>

<%= render "utils/basic_info_tabs" %>

<div class="right_btn_div">
  <%= link_to (t 'common.new'), new_supplier_path ,{:class => "inline-block s-btn"}%>
</div>

<table class="grid">
  <tr>
    <th><%= t 'activerecord.attributes.supplier.name' %></th>
    <th><%= t 'activerecord.attributes.supplier.code' %></th>
    <th><%= t 'activerecord.attributes.supplier.phone' %></th>
    <th><%= t 'activerecord.attributes.supplier.address' %></th>
    <th></th>
  </tr>

<% @suppliers.each do |supplier| %>
  <tr>
    <td class = "ellipsis" title = "<%= supplier.name %>"><%= supplier.name %></td>
    <td class = "ellipsis" title = "<%= supplier.code %>"><%= supplier.code %></td>
    <td class = "ellipsis" title = "<%= supplier.phone %>"><%= supplier.phone %></td>
    <td class = "ellipsis" title = "<%= supplier.address %>"><%= supplier.address %></td>
     <td style="width: 150px;">
     <%= link_to (t 'common.show'), supplier %>
     <%= link_to (t 'common.edit'), edit_supplier_path(supplier) %>
     <%= link_to (t 'common.destroy'), supplier, confirm: (t 'common.confirm_destroy'), method: :delete %></td>
  </tr>
<% end %>
</table>

<br />


